package com.benyq.networkprogramme.email

import javax.mail.Authenticator
import javax.mail.PasswordAuthentication


/**
 * @author benyq
 * @date 18-9-25 17:36
 * @E-mail： 1520063035@qq.com
 * @description
 */
class MyAuthenticator(val userName: String, val password: String): Authenticator() {

    override fun getPasswordAuthentication(): PasswordAuthentication {
        return PasswordAuthentication(userName, password)
    }
}